<?php
	$path = $_SERVER["PHP_SELF"];
	$arr = explode("/", $path);
    $root = $_SERVER["HTTP_HOST"] == "localhost" || $_SERVER["HTTP_HOST"] == "127.0.0.1" ? "/" . $arr[1] : "";
	$imgPath = $root . "/public/uploads/";
	$imgPathThumb = $root . "/public/uploads/thumb_";
	$uploadPath = "D:\phpStudy\PHPTutorial\WWW" . $imgPath;
	$uploadPathThumb = "D:\phpStudy\PHPTutorial\WWW" . $imgPathThumb;
?>